const log4js = require('log4js')
log4js.configure({
    appenders: { message: { type: "file", filename: "message.log" } },
    categories: { default: { appenders: ["message"], level: 'info' } },
    pm2: true
})
const logger = log4js.getLogger('virus report')

module.exports = class Log {
    info(...args) {
        console.info(...args)
        logger.info(...args)
    }
    error(...args){
        console.error(...args)
        logger.error(...args)
    }
}